﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class sevenNumbersSum
{
    static void Main()
    {
        int sum = 0;
        int [] Arr = new int [7];
        for (int element = 0; element < Arr.Length; element++) 
        {
            do
            {
                Console.Write("Enter [{0}] element (-5000;5000): ", element);
                Arr[element] = Convert.ToInt32(Console.ReadLine());
                if ((Arr[element] < -5000) || (Arr[element] > 5000))
                {
                    Console.WriteLine("Out of range !!!");
                }
            } while ((Arr[element] < -5000) || (Arr[element] > 5000));
            sum += Arr[element];
        }
        Console.WriteLine(sum);
    }
    
}

